FROM docker.21ber.com/node:22.20.0-slim

WORKDIR /usr/src/app

COPY package*.json ./
# RUN npm install --omit=dev
RUN npm install

COPY . .
RUN npm run build

# COPY package*.json ./
# COPY dist ./dist
# COPY node_modules ./node_modules

EXPOSE 3000

CMD ["node", "dist/main"]